<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v2.7.2" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="Keywords" content="" />
  <meta name="Description" content="" />
 <link href="themes/default/style.css" rel="stylesheet" type="text/css" />
  <link href="themes/default/account_1109.css" rel="stylesheet" type="text/css" />
<!-- <script type="text/javascript"  src="js/jquery-1.3.2.min.js"></script>-->
 {insert_scripts files='jquery.js'}
<!-- <script type="text/javascript" src="js/bottom.js">-->
  <!--<script type="text/javascript"  src="js/AjaxRequest.js"></script>
  <script type="text/javascript"  src="js/comm1110.js"></script>-->
  <title>用户中心_爱优商城-成人用品、情趣用品、性用品尽在爱优网！ - Powered by ECShop</title>
  <style type="text/css">
/*当前位置*/
#ur_here{width:990px; margin:auto; padding:15px 0px 5px 0px; line-height:36px; color:#424242;}
#ur_here a{color:#CB1F67; text-decoration:none;}
</style>
</head>
<body>
<div class="mainAll">
<script type="text/javascript">
	$(function(){
		$(".initA").click(function(){
		$(this).addClass("selectA");
		$(".initA").not(this).removeClass("selectA");
		})
	})
</script>
   <div id="xwmoban_containter_wrap">
        <div id="xwmoban_container">
    		<div id="xwmoban_box_1">
 <div id="container">
	<div class="block box">
		 <div id="ur_here">
		 {include file="/library/ur_here.lbi"}
		</div>
	</div>
   	<div id="div_ac_menu">
          {include file="/library/user_menu2.html"}
          
          
 <div id="account_right">         
<!-- *用户基本资料start-->
<!-- {if $action eq 'profile'} -->
{* 包含脚本文件 *}
            {insert_scripts files='utils.js,transport.js,region.js,shopping_flow.js'}
            <script type="text/javascript">
              region.isAdmin = false;
              {foreach from=$lang.flow_js item=item key=key}
              var {$key} = "{$item}";
              {/foreach}
              {literal}
              onload = function() {
                if (!document.all)
                {
                  document.forms['theForm'].reset();
                }
              }
              {/literal}
            </script>

           <form method="post" action="user.php" name="form1" id="form1" onsubmit="return check(this)">  
           <input name="act" type="hidden" value="act_edit_profile" />
<div class="account_base_div">
  <img src="themes/default/img/fbzl.gif" border="0" />
  <div class="border_div">
  <div class="grda">
    <p><span class="text fl"><font class="fc_C85493">*</font> 登录名：</span><span class="fl">{$profile.user_name}</span></p>
	
	<!-- <p><span class="text fl"><font class="fc_C85493">*</font> 姓名：</span><input name="name" id="name" type="text" class="input fl"  value="VIPSHOP会员" size="30" /></p> -->
   <p><span class="text fl"><font class="fc_C85493">*</font> 性别：</span>
   <input type="radio" name="sex" value="0" {if $profile.sex==0}checked="checked"{/if} />
                    {$lang.secrecy}&nbsp;&nbsp;
                    <input type="radio" name="sex" value="1" {if $profile.sex==1}checked="checked"{/if} />
                    {$lang.male}&nbsp;&nbsp;
                    <input type="radio" name="sex" value="2" {if $profile.sex==2}checked="checked"{/if} />
                  {$lang.female}&nbsp;&nbsp; </p>
	  <p><span class="text fl"><font class="fc_C85493">*</font> 生日：</span><input name="birthday" id="birthday" type="text" class="input fl"  value="{$profile.birthday}" size="10" /><span class="fl">(生日格式：2010-12-06)</span></p>
      <p><span class="text fl"><font class="fc_C85493">*</font> 移动电话：</span><input name="extend_field5" id="phone" type="text" class="input fl"  value="{$profile.mobile_phone}" size="30" /></p>
		<p><span class="text fl">固定电话：</span><input name="extend_field4" id="telephone" type="text" class="input fl"  value="{$profile.home_phone}" size="18" /><span class="fl">(格式如：020-86315027)</span></p>
	  <p><span class="text fl"><font class="fc_C85493">*</font> 所在地：</span>
	  <input name="address_id" type="hidden" value="{$myaddress.address_id}" />
	  <select name="country" id="selCountries_{$sn}" onchange="region.changed(this, 1, 'selProvinces_{$sn}')">
                      <option value="0">{$lang.please_select}{$name_of_region[0]}</option>
                      <!-- {foreach from=$country_list item=country} -->
                      <option value="{$country.region_id}" {if $myaddress.country eq $country.region_id}selected{/if}>{$country.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="province" id="selProvinces_{$sn}" onchange="region.changed(this, 2, 'selCities_{$sn}')">
                      <option value="0">{$lang.please_select}{$name_of_region[1]}</option>
                      <!-- {foreach from=$province_list item=province} -->
                      <option value="{$province.region_id}" {if $myaddress.province eq $province.region_id}selected{/if}>{$province.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="city" id="selCities_{$sn}" onchange="region.changed(this, 3, 'selDistricts_{$sn}')">
                      <option value="0">{$lang.please_select}{$name_of_region[2]}</option>
                      <!-- {foreach from=$city_list item=city} -->
                      <option value="{$city.region_id}" {if $myaddress.city eq $city.region_id}selected{/if}>{$city.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                    <select name="district" id="selDistricts_{$sn}" {if !$district_list}style="display:none"{/if}>
                      <option value="0">{$lang.please_select}{$name_of_region[3]}</option>
                      <!-- {foreach from=$district_list item=district} -->
                      <option value="{$district.region_id}" {if $myaddress.district eq $district.region_id}selected{/if}>{$district.region_name}</option>
                      <!-- {/foreach} -->
                    </select>
                  {$lang.require_field}
                  
                  </p>
	 <p><span class="text fl"><font class="fc_C85493">*</font> 地址：</span><input name="address" id="address" type="text" class="input fl"  value="{$myaddress.address}" size="50" /></p>
	 <p><span class="text fl"><font class="fc_C85493">*</font> 联系邮箱：</span><input name="email" id="email" type="text" class="input fl"  size="30" readonly="readonly" value="{$profile.email}" />
		   <input name="postmen" type="hidden" value="510000" /></p>
		   
		   <p>温馨提示请填写有效邮箱地址，以便接收爱优网的通知及订单信息，建议使用QQ、hotmail等邮箱</p>

</div>
</div>   
<p class="base_width"><input type="image"  src="themes/default/img/tj.gif" class="fl"/> 
<img src="themes/default/img/qbchongz.gif" class="grad_btn fl" /></p></div>
</form>
<!-- {/if} -->
<!-- #用户基本资料 end-->
        	    
<!-- *用户基本资料之密码修改start-->
<!-- {if $action eq 'profile_password'} -->
		
						  <div class="account_base_div">
				<img src="themes/default/img/xgmm.gif" class="fl" />
				<div class="border_div">
				
				  <form name="passwordForm" id="passwordForm" method="post" action="user.php">
				  <input name="act" type="hidden" value="act_edit_password" />
				  <div class="zfmm">
				    <p><b>修改您的密码，请输入以下信息：</b>（带*为必填项。）</p>
					<p>	<label>旧 &nbsp;密  &nbsp;码：</label><input name="old_password" id="old_pwd" type="password"/>
					    </p>
				    <p><label>新 &nbsp;密  &nbsp;码：</label><input name="new_password" id="new_pwd" type="password"/>
					  （至少6位）
					</p>
					<p><label>确认新密码：</label><input name="comfirm_password" id="new_pwd2" type="password"/></p>
					<p class="btn"><a href="#" onclick="submitPassword()" class="fl" style="margin-right:10px;"><img border="0" src="themes/default/img/tj.gif" /></a><a href="#" class="fl" onclick="passwordForm.reset()"><img border="0" src="themes/default/img/qbchongz.gif" /></a></p>
				  </div>
				  </form>
				<script>
				function submitPassword(){
					
					op = document.getElementById("old_pwd").value;
					
					np = document.getElementById("new_pwd").value;
					cp = document.getElementById("new_pwd2").value;
					if(op.length<=0){
						alert('请填写原密码');
						return false;
					}
					if(np.length<6){
						alert('新密码长度要大于6位');
						return false;
					}
					if(np != cp){
						alert('两次输入的新密码不相同');
						return false;
					}
					document.getElementById("passwordForm").submit();
				}
				</script>
				</div>   
				<!-- {if $profile.passwd_question} -->
				<div class="border_div">
				  <form id="passwordQuestion" name="passwordQuestion" action="user.php" onsubmit="return checkpasswordQuestion()" method="post" >
				  <input name="act" type="hidden" value="act_edit_password" />
				  <input name="sact" type="hidden" value="question" />
				  <div class="zfmm">
				     <p><b>您的账户已经设置了密码保护，如需修改，请先回答如下问题：</b></p>
				   <p>问&nbsp;&nbsp;&nbsp;&nbsp;题：<select name='sel_question_old' id='sel_question' disabled="disabled">
		  <option value='0'>{$lang.sel_question}</option>
		  {html_options options=$passwd_questions selected=$profile.passwd_question}
		  </select></p>
				      
					<p><label>答&nbsp;&nbsp;&nbsp;&nbsp;案：</label><input type="text" name="answer" id='answer' value="" maxlength="32"/>
					</p>
					<p><label>新的问题：</label><select name='sel_question' id='sel_question'>
		  <option value='0'>{$lang.sel_question}</option>
		  {html_options options=$passwd_questions}
		  </select></p>
		  			<p><label>新的答案：</label><input name="passwd_answer" id='passwd_answer' type="text" size="25" maxlengt='20' value=""/></p>
					<p class="btn"><input type="image" border="0" src="themes/default/img/tj.gif" class="fl" style="border:none;margin-right:10px;"/><a href="#" class="fl"><img border="0" onclick="document.passwordQuestion.reset();" src="themes/default/img/qbchongz.gif" /></a> </p>
				  </div>
				  </form>
				  <script>
				  function checkpasswordQuestion(){
					  an = document.getElementById("answer").value;
					  nq = document.getElementById("sel_question").value;
					  na = document.getElementById("passwd_answer").value;
					  if(!an){
						  alert('请先回答问题');
						  return false;
					  }
					  if(nq == 0){
						  alert('请选择一个新问题');
						  return false;
					  }
					  if(!na){
						  alert('请填写新问题的答案');
						  return false;
					  }
					  return true;
				  }
				  </script>
			</div>
			<!-- {/if} -->
 
</div>
		
<!-- {/if} -->
<!-- #用户基本资料 之密码修改end-->

<!-- *订单列表start-->
<!-- {if $action eq 'order_list'} -->
<link rel="stylesheet" type="text/css" href="themes/default/ac_order.css">
	<div class="account_base_div">
	  <img style="margin-left:4px" src="themes/default/img/ddgl.gif" width="70" height="27"  />
	    
	  <div class="nav">
	        <div class="nav_dh">
	           <a class="pla {if $type eq '' && $time neq 'ago'}pla_hover{/if}" href="user.php?act=order_list&type=" >现有订单</a>
	           <a class="pla {if $type eq 5}pla_hover{/if}" href="user.php?act=order_list&type=5">成功订单</a>
	            <a class="pla {if $type eq 2}pla_hover{/if}" href="user.php?act=order_list&type=2">已取消订单</a>
	             <a class="pla {if $time eq 'ago'}pla_hover{/if}" href="user.php?act=order_list&time=ago">历史订单</a>
	        </div>
	    </div>
	   <div class="content_tb" style="margin-top:8px; " id="showhz" >
	   <div class="spmes_title" >
	  <table id="tb_main" class="table_account" align="center" cellpadding="0" cellspacing="0">
	    <tr class="title">
	      <td height="40" width="32%" style="text-align:left; padding-left:15px">商品信息</td>
	      <td  width="9%">单价（元）</td>
	      <td width="9%">数量</td>
		  <td width="18%">实付款（元）</td>
	      <td width="16%">订单状态</td>
	      <td width="16%">操作</td>
	      
	    </tr>
	    	
		  </table></div>
		  <!--{foreach from=$orders item=item} -->
	     <div class="spmes_content">
	         <div class="ddtel">
	            <h4 style="float:left">订单编号：<span style="color:#666; font:Arial, Helvetica, sans-serif" ><a href="user.php?act=order_detail&order_id={$item.order_id}" class="f6">{$item.order_sn}</a></span></h4>
	            <h4 style="margin-left:525px">下单时间：<span style="color:#666; font:Arial, Helvetica, sans-serif" >{$item.order_time}</span></h4>
	           
	         </div>
	         <div class="listone">
	           <table class="listcontent" cellpadding="0" cellspacing="0" width="748" border="0">
	             <tr>
	               <td  width="50%" height="">
	               {foreach from=$item.goods_list item=good}
	                 <table class="span_spcthree" cellpadding="0" cellspacing="0" width="100%" height="30%" border="0">
	                  <tr>
	                  <td height="100%" width="16%">
	               <a target='_blank' href="goods.php?id={$good.goods_id}"><img src="{$good.goods_thumb}" border="0" width='60' height='60' /></a>
	               </td>
	               <td width="48%">
	                 <span class="span_spctwo" style='padding-left:15px'>{$good.goods_name}</span><br />
	                 
	               </td>
	               <td align="center" width="18%">￥{$good.shop_price}</td>
	               <td align="center" width="18%">{$good.buy_number}</td>
	               </tr></table>
	               {/foreach}
	               </td>
	               <td class="td_fs"   width="18%">{$item.total_fee}<br /></td>
	               <td class="td_fs" width="16%"><span class="span_spc">{$item.order_status}</span></td>
	               <td class="td_fs" width="16%"><br />
	               {$item.handler}<br/>
	               <a href="user.php?act=order_detail&order_id={$item.order_id}">查看详情</a>
	               </td>
	             </tr>
	           </table>
	           
	         </div>
	        <div>
	           
	        </div>
	       
	     </div>
	     <!-- {/foreach} -->
	     <div style="height:35px">
	     
	     
	     {include file="/library/pages.lbi"}
	     </div>
	     </div>
	      
	      
	      

	     

	
	</div>

<!-- {/if} -->
<!-- #订单列表end-->

<!-- *退货列表start-->
<!-- {if $action eq 'return'} -->
<link rel="stylesheet" type="text/css" href="themes/default/ac_order.css">
		<div class="account_base_div">
	     <img src="themes/default/img/order_rt.gif" border="0" />
	  
	  
	                 
	       <div style="clear:both"></div>
	      <div class="content_tb" style="margin-top:8px; " id="showhz" >
	   <div class="spmes_title" >
	  <table id="tb_main" class="table_account" align="center" cellpadding="0" cellspacing="0">
	    <tr class="title">
	      <td height="40" width="32%" style="text-align:left; padding-left:15px">商品信息</td>
	      <td  width="18%">申请时间</td>
	      
		  <td width="18%">退/换货</td>
	      <td width="16%">状态</td>
	      <td width="16%">操作</td>
	      
	    </tr>
	    	
		  </table></div>
	     <!--{foreach from=$orders item=item} -->
	     <div class="spmes_content">
	         <div class="ddtel">
	            <h4 style="float:left">订单编号：<span style="color:#666; font:Arial, Helvetica, sans-serif" >{$item.order_id}</span></h4>
	            <h4 style="margin-left:525px">下单时间：<span style="color:#666; font:Arial, Helvetica, sans-serif" >{$item.order_time}</span></h4>
	           
	         </div>
	         <div class="listone">
	         {foreach from=$item.goods_list item=good}
	           <table class="listcontent" cellpadding="0" cellspacing="0" width="748" border="0">
	             <tr>
	               <td  width="50%" height="65">
	                 <table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
	                  <tr>
	                  <td height="100%" width="16%">
	               <a href="goods.php?id={$good.goods_id}"><img src="{$good.goods_thumb}" height='50' width='50' border="0" /></a>
	               </td>
	               <td width="48%">
	                 <span class="span_spctwo">{$good.goods_name}{$good.goods_number}</span><br />
	                 
	               </td>
	               
	               <td align="center" width="36%">{$item.request_time}</td>
	               </tr></table>
	               </td>
	               <td class="td_fs"   width="18%">退/换货</span></td>
	               <td class="td_fs"   width="18%">{$item.order_status}</span></td>
	               <td class="td_fs" width="16%"><span class="span_spc">{$item.handler}</span></td>
	               <td class="td_fs" width="16%"></td>
	             </tr>
	           </table>
	           {/foreach}
	         </div>
	        <div>
	           
	        </div>
	       
	     </div>
	     <!-- {/foreach} -->
	     <div style="height:35px">
	     
	     {include file="/library/pages.lbi"}</div>
	     </div>
	      </div>
<!-- {/if} -->
<!-- #退货列表end-->
<!-- ==========订单详情页面,包括：订单状态，商品列表，费用总计，收货人信息，支付方式，其它信息========== -->
<!--{if $action eq order_detail} -->
<link rel="stylesheet" type="text/css" href="themes/default/common.css">
<link rel="stylesheet" type="text/css" href="themes/default/ac_order.css">
		<div class="account_base_div">
		     <img src="themes/default/img/order_del.jpg" border="0" />
		  
		     <div class="spmes_content2" >
		         <div class="ddtel2" style="height:52px;">
		            <h4>订单编号：<span style="color:#666; font:Arial, Helvetica, sans-serif" >{$order.order_sn}</span></h4>
		            <p style="margin-top:6px; color:#C8227D">当前状态：{$order.order_status}{$order.shipping_status}
		</p>
		     </div>      
		         
		       <div style="clear:both"></div>
		      <div class="dl_content">
		      	{if $order.order_status_number eq 0 || $order.order_status_number eq 1 || $order.order_status_number eq 5}
		         <div class="order_zt">
		          <div class="dd-jd">
		           <div class="dd-jd-box">
		             <div class="dd-jd-over" style="width:14.285714285714"></div>
		             </div>
		             <dl class="li-1 {if $order.order_status_number eq 0}act{/if}">
		               <dt>1. 提交订单</dt>
		               <dd>{$order.add_time_format}</dd>
		               </dl>
		              <dl class="li-2 {if $order.order_status_number eq 1 && $order.shipping_status_number neq 1}act{/if}">
		              <dt>2. 商品出库</dt>
		              </dl>
		              <dl class="li-3 {if $order.shipping_status_number eq 1}act{/if}">
		              <dt>3. 等待收货</dt>
		              </dl>
		              <dl class="li-4 {if $order.order_status_number eq 5}act{/if}">
		              <dt>4. 交易完成</dt>
		              </dl>
		         </div>
		         </div>
		         {/if}
		         <h2>订单跟踪</h2>
		        <div class="box"> 下单时间：{$order.add_time_format} </div>
		        <h2>订单信息</h2>
		        <div class="box">
		         收货人：{$order.consignee}
		        <br/>
		         收货地址：{$order.address}
		        <br/>
		         联系电话：{$order.tel}, {$order.mobile}
		        </div>
		        <h2>备注</h2>
		        <div class="box"> </div>
		        <h2>支付及配送方式</h2>
		        <div class="box">
		         支付类型：{$order.pay_name}<br/>
		         <p style="margin-top:6px; color:#C8227D">付款状态：{$order.pay_status}&nbsp;&nbsp;&nbsp;&nbsp;{if $order.order_amount gt 0}{$order.pay_online}{/if}{$order.pay_time}
		        <br/>
		         送货上门时间：{$order.best_time}
		        </div>
		        <h2>商品清单</h2>
		       
		         <div class="listone" style=" width:738px; margin:10px 4px 0px 4px;">
		           <table class="listcontent"  style=" border-bottom:#f1ebec 1px solid;"cellpadding="0"  align="center"cellspacing="0" width="740" border="0">
		           <tr>
		             <td align="center" width="34%" height="50px">商品信息</td>
		             <td align="center" width="16%">单价（元）</td>
		             <td align="center" width="18%">返爱优优惠券</td>
		             <td align="center" width="16%">数量</td>
		             <td align="center" width="16%">小计（元）</td>
		           </tr>
		           </table>
		           <!-- {foreach from=$goods_list item=goods} -->
		           <table style=" border-bottom:#f1ebec 1px solid;" class="listcontent" cellpadding="0" cellspacing="0" width="740" border="0">
		             <tr>
		               <td  width="50%" height="65">
		                 <table cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
		                  <tr>
		                  <td height="100%" width="16%">
		               <a href="goods.php?id={$goods.goods_id}" target="_blank"><img src="{$goods.goods_thumb}" border="0" height="60" width="60" /></a>
		               </td>
		               <td width="54%" >
		                 <span class="span_spctwo"><a href="goods.php?id={$goods.goods_id}" class="span_spctwo" target="_blank">{$goods.goods_name}</a></span><br />
		                 
		               </td>
		               <td class="td_fs" align="center" width="30%">{$goods.goods_price}</td>
		               
		               </tr></table>
		               </td>
		               <td class="td_fs"   width="18%">0</td>
		               <td class="td_fs" width="16%">{$goods.goods_number}</td>
		               <td class="td_fs" width="16%">{$goods.subtotal}</td>
		             </tr>
		           </table>
		           <!-- {/foreach} -->
		         </div>
		      <table cellpadding="0" cellspacing="0" width="740" style=" border-bottom:#f1ebec 1px solid;" border="0">
		           <tr>
		              <td colspan="4" align="right" style="padding:10px 10px 5px 0px; line-height:20px">
		               商品总价： <!-- {if $order.extension_code eq "group_buy"} -->{$lang.gb_deposit}<!-- {/if} -->
		              <strong> {$order.formated_goods_amount}</strong>
		              <br/>
		              <!-- {if $order.discount gt 0} 折扣 -->
              		- {$lang.discount}: {$order.formated_discount}
              		<!-- {/if} -->
              		<!-- {if $order.tax gt 0} -->
	              + {$lang.tax}: {$order.formated_tax}
	              <!-- {/if} -->
	              <!-- {if $order.shipping_fee > 0} -->
	              + {$lang.shipping_fee}: {$order.formated_shipping_fee}
	              <!-- {/if} -->
	              <!-- {if $order.insure_fee > 0} -->
	              + {$lang.insure_fee}: {$order.formated_insure_fee}
	              <!-- {/if} -->
	              <!-- {if $order.pay_fee > 0} -->
	              + {$lang.pay_fee}: {$order.formated_pay_fee}
	              <!-- {/if} -->
	              <!-- {if $order.pack_fee > 0} -->
	              + {$lang.pack_fee}: {$order.formated_pack_fee}
	              <!-- {/if} -->
	              <!-- {if $order.card_fee > 0} -->
	              + {$lang.card_fee}: {$order.formated_card_fee}
	              <!-- {/if} --> 
		              <!-- {if $order.money_paid > 0} -->
              		- {$lang.order_money_paid}: {$order.formated_money_paid}
              		<!-- {/if} -->
              		<!-- {if $order.surplus > 0} -->
              		- {$lang.use_surplus}: {$order.formated_surplus}
              		<!-- {/if} -->
              		<!-- {if $order.integral_money > 0} -->
              		- {$lang.use_integral}: {$order.formated_integral_money}
              		<!-- {/if} -->
              		<!-- {if $order.bonus > 0} -->
              		- {$lang.use_bonus}: {$order.formated_bonus}
              		<!-- {/if} -->
		              <br/>
		              {$lang.order_amount}: <strong>
		              <span class="span_spctwo">{$order.formated_order_amount}</span>
		              </strong>
            <!-- {if $order.extension_code eq "group_buy"} --><br />
            {$lang.notice_gb_order_amount}<!-- {/if} -->
            			
		              </td>
		              </tr>
		           </table>
		         <table cellpadding="0" cellspacing="0" width="740"  border="0" >
		           <tr>
		             <td align="right" style="padding:20px 5px 20px 0px;">
		             {if $order.order_status_number eq 0}
		               <a href="user.php?act=cancel_order&order_id={$order.order_id}" onclick="if (!confirm('您确认要取消该订单吗？取消后此订单将视为无效订单')) return false;"><img src="themes/default/img/qxchongz.gif" /></a>
		             {/if}
		             </td>
		           </tr> </table>  
		        </div>
		       
		     </div>    
		     
		         
		      </div>
		       
		   
		
		
		</div>  
		   
		           
		  
		       
		     </div>

<!--{/if} -->
<!--#订单详情页 end-->
<!-- *钱包余额start-->
<!-- {if $action eq 'account_log'} -->
	<!--提示框内容 start-->
	<div id="div_user_mark"  style="display:none" class="tip_show">
	  <div><img src="themes/default/img/jxbg_t2.gif" /></div>
	
	  <div class="tip_div"><span>爱优钱包是爱优会推出的一种新型电子账户，可实现充值、消费、退款、余额查询和提现等功能。在爱优会购物所产生的退款金额，将默认直接退到您账户的爱优钱包中。</span>&nbsp;
		<p><a href="#" target="_blank" onclick="document.getElementById('div_user_mark').style.display='none'" class="fl fc_DA0B91">了解更多</a>
		<a href="#" onclick="document.getElementById('div_user_mark').style.display='none'" class="fr fc_DA0B91">关闭</a></p>
	  </div>
	  <div><img src="themes/default/img/jxbg_b.gif" /></div>
	</div>
	<!--提示框内容 end-->
	
	
	<div class="account_base_div">
	     <img style="float:left;" src="themes/default/img/order_last.gif" border="0" />
	  <a href="#" class="fr fc_DA0B91 tip_link"   onmouseover="document.getElementById('div_user_mark').style.display='block'">什么是爱优钱包[ ？]</a>
	  
	                 
	       <div style="clear:both"></div>
	      <div class="content_tb" style="margin-top:8px; " id="showhz" >
	   <div class="spmes_title" >
	  <table id="tb_main" class="table_account" align="center" cellpadding="0" cellspacing="0">
	    <tr class="title">
	      <td height="40" width="22%" style="text-align:left; padding-left:15px">钱包总金额：<span class="span_spctwo">{$surplus_amount}</span></td>
	      <td  width="20%">钱包可用金额：<span class="span_spctwo">￥{$keyong}</span></td>
	      
		  <td width="20%">提现中金额：<span class="span_spctwo">￥{$tixian}</span></td>
	      
	      <td width="38%"></td>
	      
	    </tr>
	    	
		  </table></div>
	     
	     <div class="spmes_content">
	         <div class="ddtel">
	          <table class="listcontent"  style=" border-bottom:#f1ebec 1px solid; background:#FAF7F8;"cellpadding="0"  align="center" cellspacing="0" width="762" border="0">
		           <tr>
		             <td  class="td_fs" align="center" width="20%" height="40px">订单号</td>
		             <td  class="td_fs" align="center" width="10%" height="40px">类型</td>
		             <td align="center" width="20%">金额（元）</td>
		             <td align="center" width="10%">状态</td>
		             <td align="center" width="20%">支付方式</td>
		             <td style="border-right:#f1ebec 1px solid;" align="center" width="20%">时间</td>
		           </tr>
		           </table>
		           <!--{foreach from=$account_log item=item}-->
		           <table style=" border-bottom:#f1ebec 1px solid;" class="listcontent" align="center" cellpadding="0" cellspacing="0" width="762" border="0">
		             <tr align=center>
		               <td class="td_fs" width="20%" height="40px">{$item.id}</td>
		               <td class="td_fs" width="10%">{if $item.process_type eq 0}充值{else}提现{/if}</td>
		               <td class="td_fs" width="20%">{$item.amount}</td>
		               <td class="td_fs" width="10%">{if $item.is_paid eq 0}待付款{else}成功{/if}</td>
		               <td class="td_fs" width="20%">{$item.payment}</td>
		               <td style="border-right:#f1ebec 1px solid;" class="td_fs" width="20%">{$item.add_time}</td>
		             </tr>
		           </table>
		           <!--{/foreach}-->
	           
	         </div>
	         <div class="listone">
	           <table class="listcontent" cellpadding="0" cellspacing="0" width="748" border="0">
	             <tr align="center">
	               <td colspan="5" height="65">
	                
	              
	             </tr>
	           </table>
	           
	         </div>
	        <div>
	           
	        </div>
	       
	     </div>
	     <div style="height:35px">
	     
	     <p class="p_pages fr">  {include file="/library/pages.lbi"}</p></div>
	      
	    
	       
	     </div>    
	     
	         
	      </div>

<!-- {/if} -->
<!-- #钱包余额end-->
<!-- *钱包充值start-->
<!-- {if $action eq 'account_deposit'} -->
<link rel="stylesheet" type="text/css" href="themes/default/shop1.css">
<link rel="stylesheet" type="text/css" href="themes/default/common.css">
<form name="formSurplus" id="formSurplus" method="post" action="user.php" onsubmit="return submitSurplus()">
	<div class="account_base_div" id="pay_1">
	     <img style="float:left;" src="themes/default/img/order_cz.gif" border="0" />
	  <a href="user.php?act=account_pay_record" class="fr fc_DA0B91 tip_link"   >查看充值记录</a>
	  
	                 
	       <div style="clear:both"></div>
	      <div class="content_tb" style="margin-top:8px; " >
	   <div class="spmes_title" >
	  <table id="tb_main" class="table_account" cellpadding="0" cellspacing="0"  >
	    <tr class="title">
      <td align="right" height="60" width="10%">
         我要充值
      </td>
      <td width="20%">
      <input type="text" name="amount" id="txt"  />   
      </td>
      <td align="left" width="10%"><a href="javascript:choosePay()" target="_blank"><img src="themes/default/img/tj.gif"/></a>
      </td>
      <td width="60%"> </td>
      
    </tr>
		  </table></div>
		  <br/> <br/> <br/>
	     </div>    
	      
	         <p class="wallet_tip" style="margin-top:15px">
	          <b>温馨提示：</b>
	          <br/>
	           1、爱优商城禁止利用钱包充值功能进行信用卡套现行为，一旦发现，将原路退回充值金额，不作另行通知。所产生的法律后果，请自行承担。 
	          <font class="fc_DA0B91">＊</font>
	          若发现此行为两次以上，往后该帐户将只能提现、无法充值。
	          <br/>
	           2、充值成功后可即时到账，系统会记录您每一笔充值记录。如有任何疑问，请咨询在线客服或致电400-6789-888，爱优客服竭诚为您服务。
	          </p>
	      </div>
	      
	      
	      
	      <div class="wpay_base_width" id="pay_2" style='display:none'>
			  <div class="wpay_money gwc_zfhk">
			    <b>您本次的充值资金为 <font id="pay_money">100</font>元</b>
				 <p class="wpay_line"></p>
				 <p><span>待支付金额：<b class="fc_DB0097" id="pay_money2">100</b></span></p>
			  </div>
			  
			   <div class="wpay_paylist gwc_zfhk">
			      <b class="title">请选择支付方式：</b>
				  <div class="wpay_line"></div>
				  <!-- {foreach from=$payment item=list} -->
				  <div class="zffs">
				    <div class="zfhk_left">
					  <h1 style="float:left;"><input type="radio" name="payment_id" value="{$list.pay_id}" /><img src="themes/default/img/{$list.pay_name}.gif"  style=" vertical-align:middle; cursor:pointer" onclick="pay_select('2')" /></h1>
					</div>
				    <div class="zfhk_right">
						<ul> 
						  <li><b class="fc_DB0097" style="vertical-align:middle; cursor:pointer" >{$list.pay_name}</b></li>
						  <li>（{$list.pay_desc}） <a href="#" target="_blank" class="gwc_help_r"> 帮助</a></li>
						</ul>
				    </div>
					<div style="clear:both;"></div>
				  </div>
				  <!-- {/foreach} -->
			   </div>
			   <div id="dv_back" style="clear:both; width:350px; margin:10px auto;"><input type="image" src="themes/default/img/wcdd_btn.gif" /> <a href="user.php?act=account_deposit"><img src="themes/default/img/back_level.gif" width="102" height="29" border="0" style="vertical-align:middle;" /></a>
			     
			     
			   </div>
			  
			</div>
	      
	      
	      
	      <input type="hidden" name="surplus_type" value="0" />
          <input type="hidden" name="rec_id" value="{$order.id}" />
          <input type="hidden" name="act" value="act_account" />
</form>
<script>
function choosePay(){
	$form = document.getElementById("formSurplus");
	amount = document.getElementById("txt").value;
	if(isNaN(amount) || amount == ''){
		alert('请输入一个数字');
		return false;;
	}
	document.getElementById("pay_1").style.display = 'none';
	document.getElementById("pay_2").style.display = '';
	document.getElementById("pay_money").innerHTML = amount;
	document.getElementById("pay_money2").innerHTML = amount;
}
</script>
<!-- {/if} -->
<!-- #钱包充值end-->
<!-- {if $action eq "act_account"} -->
<link rel="stylesheet" type="text/css" href="themes/default/shop1.css">
<link rel="stylesheet" type="text/css" href="themes/default/common.css">
		<div class="wpay_money gwc_zfhk">
					    <b>您本次的充值资金为 <font id="pay_money">{$amount}</font></b>
					    <p class="wpay_line"></p>
						 
						 <p><span>待支付金额：<b class="fc_DB0097" id="pay_money2">{$amount}</b></span></p>
						 <p class="wpay_line"></p>
						 <p><span>支付方式为：<b class="fc_DB0097" id="pay_money2">{$payment.pay_name}</b></span></p>
						 <p class="wpay_line"></p>
						 <p><span>支付手续费：<b class="fc_DB0097" id="pay_money2">{$pay_fee}</b></span></p>
						 <p class="wpay_line"></p>
						 
		</div>
		{$payment.pay_button}
<!-- {/if} -->
<!-- *钱包充值记录start-->
<!-- {if $action eq 'account_pay_record'} -->

		<div class="account_base_div">
		     <img style="float:left;" src="themes/default/img/order_czjl.jpg" border="0" />             
		       <div style="clear:both"></div>
		      <div class="content_tb" style="margin-top:8px;" >
		   <div class="spmes_title" >
		 <table id="tb_main" class="table_account" align="center" cellpadding="0" cellspacing="0">
		    <tr class="title">
		      <td height="50" width="22%" style="text-align:left; padding-left:15px">钱包总金额：<span class="span_spctwo">{$surplus_amount}</span></td>
		      <td  width="20%">钱包可用金额：<span class="span_spctwo">￥{$keyong}</span></td>
		      
			  <td width="20%">提现中金额：<span class="span_spctwo">￥{$tixian}</span></td>
		      
		      <td width="38%"></td>
		      
		    </tr>
		    	
			  </table></div>
		     
		     
		     
		      <!---->
		    
		       
		     </div>    
		      <div class="listone" style=" width:762px; margin:10px 0px 0px 0px;">
		           <table class="listcontent"  style=" border-bottom:#f1ebec 1px solid; background:#FAF7F8;"cellpadding="0"  align="center" cellspacing="0" width="762" border="0">
		           <tr>
		             <td  class="td_fs" align="center" width="20%" height="40px">订单号</td>
		             <td align="center" width="20%">金额（元）</td>
		             <td align="center" width="20%">状态</td>
		             <td align="center" width="20%">支付方式</td>
		             <td style="border-right:#f1ebec 1px solid;" align="center" width="20%">时间</td>
		           </tr>
		           </table>
		           <!--{foreach from=$account_log item=item}-->
		           <table style=" border-bottom:#f1ebec 1px solid;" class="listcontent" align="center" cellpadding="0" cellspacing="0" width="762" border="0">
		             <tr align=center>
		               <td class="td_fs" width="20%" height="40px">{$item.id}</td>
		               <td class="td_fs" width="20%">{$item.amount}</td>
		               <td class="td_fs" width="20%">{if $item.is_paid eq 0}待付款{else}已成功{/if}</td>
		               <td class="td_fs" width="20%">{$item.payment}</td>
		               <td style="border-right:#f1ebec 1px solid;" class="td_fs" width="20%">{$item.add_time}</td>
		             </tr>
		           </table>
		           <!--{/foreach}-->
		           {include file="/library/pages.lbi"}
		         </div>
		         
		      </div>

<!-- {/if} -->
<!-- #钱包充值记录end-->
<!-- *提现start-->
<!-- {if $action eq 'account_raply'} -->
		<div class="account_base_div">
	     <img style="float:left;" src="themes/default/img/txzx.jpg" border="0" />             
	       <div style="clear:both"></div>
	      <div class="content_tb" style="margin-top:8px;" >
	   <div class="spmes_title" >
	 <table id="tb_main" class="table_account" align="center" cellpadding="0" cellspacing="0">
	    <tr class="title">
	      <td height="50" width="22%" style="text-align:left; padding-left:15px">钱包总金额：<span class="span_spctwo">{$surplus_amount}</span></td>
	      <td  width="20%">钱包可用金额：<span class="span_spctwo">￥{$keyong}</span></td>
	      
		  <td width="20%">提现中金额：<span class="span_spctwo">￥{$tixian}</span></td>
	      
	      <td width="38%"></td>
	      
	    </tr>
	    	
		  </table></div>
	     
	     
	     
	      <!---->
	    
	       
	     </div> 
	     <div>   
	      <div id="_wd_tips" class="wallet_tip" style="z-index:1;margin-top:15px" >
	 1、爱优商城财务每个工作日处理一次提现，转账后会以手机短信与站内信的方式通知，请耐心等待。
	<br/>
	 2、每次最多可以申请1200元的提现，每周提现最高3000元，如满足则需要再延时一周方可再次提现。如发现套现等非法行为， 款项将 限制提现。
	<br/>
	 3、申请提现后，相应款项将暂扣冻结，直到爱优商城处理完成。
	<br/>
	 4、请用户认真并如实地填写数据，如果因数据错误而导致"转账失败"，将会大大延长其到账时间，爱优商城对此恕不负责，请会员见谅。
	<br/>
	
	</div>
	       <form  method="post" name="form1" onsubmit="return checkForm(this);" action = 'user.php' >
	       <input type="hidden" name="act" value="act_account" />
	       <input type="hidden" name="surplus_type" value="1" />
	       <input type="hidden" name="avi" id="avi" value="{$keyong}" />
	   <div class="tqxj">
	        <span  class="txje"><font class="fcred">*</font>提取金额：</span>
	          <input name="amount" id="amount" value=""   type="text" />
			  <input type="hidden" name="withdraw_type" value="bank" />
	        <br />
	        <div class="tssm">（总金额：<font class="fc_DB0097">{$surplus_amount}</font>元，可提金额：<font class="fc_DB0097">{$keyong}</font>元  每次最多<font class="fc_DB0097">1200.00</font>元）</div>
	
			<div id="div_all_bank">
			<span ><font class="fcred">*</font>开户行及所属省市：</span>
				<span>
	                <select name="bank_n" value="" id="bank_n" size="1" onchange="GetCounty('document.form1','bank_n','city','county')">
					  <option value="">开户行</option>
					  <option value="工商银行">工商银行</option>
					  <option value="农业银行">农业银行</option>
					  <option value="建设银行">建设银行</option>
					  <option value="交通银行">交通银行</option>
					</select>
				</span>
				<div class="tqline1">
				<span>
					省份:<input name="province" id="province" size=10 />
	&nbsp;
					地级市:<input name="city" id="city" size=10 />
				  </span>
				</div>
				<div  class="tqline2">
				<span id="bank_other_id"><font class="fcred">*</font>分行地址：</span><span>
				
					&nbsp;<input name="address" id="address" size=30 />
				<a id="search_bank_button" href="#" onclick="show_bank_other();" style="display:none;" class="fc_DB0097">筛选</a>
	
				</span>
	            
				</div>
	            
			</div>
	        		<div class="tssm"><font class="fcred">如不清楚请</font><a href="#" onclick="show_bank_hotline();" class="fc_DB0097">咨询银行客服</a></div>
			<div id="bank_other_v" name="bank_other_v" style="display:none">
				<span><font class="fcred">*</font>开户行及支行全称：</span>
				<input name="bank_name" value="" type="text"/>
	            		<div class="fcred">请务必输入完整和正确的支行信息，否则我们将无法完成您的提现申请.如：广州荔湾支行鹤园分理处</div>
			</div>
	
	
			<p class="tqline3"><font class="fcred">*</font>银行账户：
			<input type="text" name="card_sn" id="card_sn" value="" /><br /></p>
		    <!--
			<span style="margin-left:86px;_margin-top:20px">身份证号：</span>
			<input type="text" name="id_card" value="" /><br /><div class="tssm">（应税务部门要求，2007年11月30日开始，收款时须填写身份证号码）</div>
			-->
			<span class="tqline4"><font class="fcred">*</font>开户人姓名：</span>
					  <input type="text" name="user_name" id="user_name" value="" /><br /><div class="tssm">（为了您的账户安全，开户人姓名必须为账户本人，绑定后将不能修改。）</div>
					<span class="tqline5">手机：</span>
			<input type="text" name="mobile" value="" /><br /><div class="tssm">（免费接收爱优商城转账通知短信）</div>
			<p class="tqline6"><font class="fcred">*</font>验证码：
			<input type="text"  name="captcha" id="captcha" /><img src="captcha.php?{$rand}" alt="captcha" onClick="this.src='captcha.php?'+Math.random()" class="captcha"><br /></p>
			<!--  <span class="tqline3"><font class="fcred">*</font>提现密码：</span>
			<input type="password" name="wd_psw" value="" />&nbsp;<a href="/account/wallet_password.php?act=lost&type=2"><font class="fc_999">密码找回</font></a><br />-->
					<p style="text-align:center;"><input type="image" src="themes/default/img/qrtj.gif" border="0"  />&nbsp;&nbsp;<img src="themes/default/img/cxtx.gif" border="0" onclick= "form1.reset()"/></p>
	  </div>
	     
	  </form>  
	  <script>
	  function checkForm(o){
		  amount = document.getElementById("amount");
		  avi    = parseFloat(document.getElementById("avi").value);
		  bank   = document.getElementById("bank_n");
		  cardsn = document.getElementById("card_sn");
		  user_name = document.getElementById("user_name");
		  captcha = document.getElementById("captcha");
		  if(isNaN(amount.value)){
			  alert('提取金额有误');
			  return false;
		  }
		  if(amount.value == '' || amount.value <0 || amount.value >1200 || amount.value > avi ){
			  alert('提取金额有误');
			  return false;
		  }
		  if(bank.value == ''){
			  alert('请选择开户行');
			  return false;
		  }
		  if(cardsn.value == ''){
			  alert('请填写卡号');
			  return false;
		  }
		  if(user_name.value == ''){
			  alert('请填写开户人姓名');
			  return false;
		  }
		  if(captcha.value == ''){
			  alert('请填写验证码');
			  return false;
		  }
		  return true;
	  }
	  </script>
	      </div></div>
<!-- {/if} -->
<!-- #提现end-->
</div>
</div>
 </div>
  </div>
   </div>
    </div> 
</div>
  
  <div id="bigdiv" style="height:1274px; width: 1421px; background-color:#000 ; opacity: 0.6; display: none; filter: Alpha(Opacity=50)"></div>;
</body>
</html>
